<%@ page contentType="text/html;charset=UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<c:set var="ctx" value="${pageContext.request.contextPath}" />

<form id="pagerForm" method="post"	action="${ctx}/statisticsDate/accountDetail">
    <input type="hidden" name="time" value="${time}" />
    <input type="hidden" name="flag" value="${flag}" />
</form>

<form rel="pagerForm" onsubmit="return navTabSearch(this);">
         <input type="hidden" name="pageNum" value="${page.current}" />
    <input type="hidden" name="pageSize" value="${page.pageSize}" />
    <input type="hidden" name="numPerPage" value="${page.pageSize}" />
	<div class="pageContent">
		<div class="panelBar">
			<ul class="toolBar">
				<li><a class="icon" title="确实要导出这些记录吗?"
					href="${ctx}/statisticsDate/staticExport" target="dwzExport"
					targettype="navTab"><span>导出EXCEL</span></a></li>
			</ul>
		</div>




		<table class="table" width="100%" layoutH="80">
			<thead>
				<tr>
					<th align="center">日期</th>
					<th align="center">媒介</th>
					<th align="center"><c:if test="${flag=='3' }">
				入金数
				</c:if> <c:if test="${flag!='3' }">
				开户数
				</c:if></th>

					<th align="center">上月平均数</th>


				</tr>
			</thead>
			<tbody>
				<c:forEach items="${page.data}" var="item">
					<tr target="sid" rel="${item.id}">
						<td>${item.formatDataTime}</td>
						<td>${item.utmcmd}</td>
						<td><c:if test="${flag=='1'}">

								<c:if test="${item.demoCount>0}">
									<a title="来源媒介统计" rel="navTab_de_page"
										href="${ctx}/statisticsDate/queryUtmcmd?utmcmd=${item.utmcmd}&startTime=${time}&endTime=${time}&temp=true&flag=${flag}"
										target="navTab" style="color: #0082E4;">${item.demoCount}</a>
								</c:if>
								<c:if test="${item.demoCount==0}">
					${item.demoCount}
					</c:if>

							</c:if> <c:if test="${flag=='2'}">

								<c:if test="${item.realCount>0}">
									<a title="来源媒介统计" rel="navTab_rel_page"
										href="${ctx}/statisticsDate/queryUtmcmd?utmcmd=${item.utmcmd}&startTime=${time}&endTime=${time}&temp=true&flag=${flag}"
										target="navTab" style="color: #0082E4;">${item.realCount}</a>
								</c:if>
								<c:if test="${item.realCount==0}">
					${item.realCount}
					</c:if>

							</c:if> <c:if test="${flag=='3'}">

								<c:if test="${item.depositCount>0}">
									<a title="来源媒介统计" rel="navTab_depos_page"
										href="${ctx}/statisticsDate/queryUtmcmd?utmcmd=${item.utmcmd}&startTime=${time}&endTime=${time}&temp=true&flag=${flag}"
										target="navTab" style="color: #0082E4;">${item.depositCount}</a>
								</c:if>
								<c:if test="${item.depositCount==0}">
					${item.depositCount}
					</c:if>

							</c:if></td>
						<td>${item.avgNum}</td>

					</tr>
				</c:forEach>

			</tbody>
		</table>
        <%@include file="/WEB-INF/view/commons/paging.jsp"%>
</form>
</div>
